﻿import 'package:get/get.dart';
import 'ProfileView.dart';

// 导入所有子模块路由
import 'bluetooth_scan/routes.dart';
import 'ring/routes.dart';
import 'settings/routes.dart';
import 'group/routes.dart';
import 'message_center/routes.dart';
import 'points_mall/routes.dart';
import 'points_detail/routes.dart';
import 'exchange_records/routes.dart';
import 'logistics_detail/routes.dart';
import 'shipping_address/routes.dart';

/// 我的模块路由配置
/// 聚合所有子模块路由
class ProfileRoutes {
  /// 我的主页
  static const String profile = '/profile';

  static final List<GetPage> routes = [
    // 主页路由
    GetPage(
      name: profile,
      page: () => const ProfileView(),
    ),
    
    // 聚合所有子模块路由
    ...BluetoothScanRoutes.routes,
    ...RingRoutes.routes,
    ...SettingsRoutes.routes,
    ...GroupRoutes.routes,
    ...MessageCenterRoutes.routes,
    ...PointsMallRoutes.routes,
    ...PointsDetailRoutes.routes,
    ...ExchangeRecordsRoutes.routes,
    ...LogisticsDetailRoutes.routes,
    ...ShippingAddressRoutes.routes,
  ];
}
